package BLL;

import DAL.SemesterDAL;
import Entities.TblSemester;
import java.util.List;

public class SemesterBLL {

    public SemesterDAL dalObj;

    public boolean add(TblSemester obj){
        dalObj = new SemesterDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblSemester obj){
        dalObj = new SemesterDAL();
        return dalObj.update(obj);
    }

    public boolean delete(TblSemester obj){
        dalObj = new SemesterDAL();
        return dalObj.delete(obj);
    }

    public TblSemester getById(int id){
        dalObj = new SemesterDAL();
        return dalObj.getById(id);
    }

    public List<TblSemester> getAll(){
        dalObj = new SemesterDAL();
        return dalObj.getAll();
    }

    public List<TblSemester> getSemesterByCurriculumId(int id){
        dalObj = new SemesterDAL();
        return dalObj.getByCurriculumId(id);
    }
}
